﻿using Abp.Application.Services;
using System.Threading.Tasks;
using FutureApp.Shop.Dto;
using Abp.Application.Services.Dto;
using System;

namespace FutureApp.Shop
{
    /// <summary>
    /// 商品分类应用服务
    /// </summary>
    public interface IGoodsCategoryAppService : IApplicationService
    {
        /// <summary>
        /// 获取商品分类列表
        /// </summary>
        /// <returns>返回商品分类列表</returns>
        Task<ListResultDto<GoodsCategoryEntityDto>> GetGoodsCategoryList();

        /// <summary>
        /// 获取商品分类
        /// </summary>
        /// <param name="id">商品分类Id</param>
        /// <returns>返回商品分类</returns>
        Task<GoodsCategoryEntityDto> GetGoodsCategory(Guid id);

        /// <summary>
        /// 获取商品分类
        /// </summary>
        /// <param name="name">商品分类名称</param>
        /// <returns>返回商品分类</returns>
        Task<GoodsCategoryEntityDto> GetGoodsCategory(string name);

        /// <summary>
        /// 是否存在商品分类
        /// </summary>
        /// <param name="id">商品分类Id</param>
        /// <returns>存在返回<c>true</c>，不存在返回<c>false</c></returns>
        Task<bool> ExistGoodsCategory(Guid id);

        /// <summary>
        /// 是否存在商品分类
        /// </summary>
        /// <param name="name">商品分类名称</param>
        /// <returns>存在返回<c>true</c>，不存在返回<c>false</c></returns>
        Task<bool> ExistGoodsCategory(string name);

        /// <summary>
        /// 启用商品分类
        /// </summary>
        /// <param name="id">商品分类Id</param>
        Task EnableGoodsCategory(Guid id);

        /// <summary>
        /// 禁用商品分类
        /// </summary>
        /// <param name="id">商品分类Id</param>
        Task DisableGoodsCategory(Guid id);

        /// <summary>
        /// 创建商品分类
        /// </summary>
        /// <param name="input">参数</param>
        Task CreateGoodsCategory(CreateGoodsCategoryInput input);

        /// <summary>
        /// 组合商品分类
        /// </summary>
        /// <param name="input">参数</param>
        Task AssembleGoodsCategory(AssembleGoodsCategoryInput input);
    }
}
